import { createRouter, createWebHistory } from "vue-router"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      redirect: "/rotate",
    },
    {
      path: "/rotate",
      name: "rotate",
      component: () => import("@/views/rotateView.vue"),
    },
    {
      path: "/plot",
      name: "plot",
      component: () => import("@/views/plotView.vue"),
    },
    {
      path: "/cityview",
      name: "cityview",
      component: () => import("@/views/cityView.vue"),
    },
    {
      path: "/search",
      name: "search",
      component: () => import("@/views/searchView.vue"),
    },
    {
      path: "/bridge",
      name: "bridge",
      component: () => import("@/views/bridgeView.vue"),
    },
    {
      path: "/measure/:type",
      name: "measure",
      component: () => import("@/views/measureView.vue"),
    },
  ],
})

export default router
